//
//  Insurances.h
//  car
//
//  Created by chenxu on 3/31/15.
//  Copyright (c) 2015 chenxu. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface Insurances : NSObject

@property (strong,nonatomic)NSString *driver;

@property (readwrite,strong,nonatomic)NSMutableArray *selected;//选的险种 selected不包含11，存的是编号
@property (readwrite,strong,nonatomic)NSMutableArray *inferred;//推算的不计免赔的险种，存的是title

@property (readwrite,strong,nonatomic)NSString *third;          //第三者责任险的数额
//@property (readonly,strong,nonatomic)NSArray *thirdlist;        //第三者责任险的固定数额



- (instancetype)initWithDriver:(NSString*)str;

- (void)loadInfo:(NSString*)driver;
- (void)saveInfo;

- (NSString* )getInsuranceName:(NSInteger)index;
- (NSString* )getSpecialName:(NSInteger)index;

- (BOOL)selectAt:(NSInteger)index;

- (NSArray* )getlist;
- (NSArray* )getThirdlist;
- (NSString* )toJsonString;
@end
